<?php
/**
 * Created by PhpStorm.
 * User: xh
 * Date: 2021/8/6
 * Time: 10:54
 */
require_once "../config/config.php";
require_once "../model/userDb.php";
$code="";
$msg="";
session_start();
if(!isset($_SESSION['name'])){
    $code=404;
    $msg="还未登录";
}
else{
    $code=200;
    $msg="已登录";
}

$dat=array(
    'code'=>$code,
    'msg'=>$msg,
);

echo  json_encode($dat);